package top.tomxwd.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.tomxwd.entity.Payment;
import top.tomxwd.mapper.PaymentMapper;
import top.tomxwd.service.PaymentService;

/**
 * @author xieweidu
 * @createDate 2020-07-07 23:37
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private PaymentMapper paymentMapper;

    @Override
    public Integer create(Payment payment) {
        return paymentMapper.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentMapper.getPaymentById(id);
    }
}
